﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using H.Core;

namespace Mbr.Reviews.Core
{
    public class Product
    {
        private readonly List<string> tags = new List<string>();

        public Product(string id, string name, Uri uri, IEnumerable<string> tags)
        {
            Check.NotEmpty(id, "id");
            Check.NotEmpty(name, "name");
            Check.NotEmpty(uri, "uri");

            this.Id = id;
            this.Name = name;
            this.Uri = uri;
            this.tags.AddRange(tags);
        }
        public Product(string id, string name, Uri uri) : this(id, name, uri, new string[] { }) { }

        public string Id { get; set; }
        public Uri Uri { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public IEnumerable<string> Tags
        {
            get
            {
                return tags;
            }
        }
    }
}
